package com.ty.springbootredis.service;




import com.baomidou.mybatisplus.extension.service.IService;
import com.ty.springbootredis.entity.User;

import java.util.List;


public interface UserService extends IService<User> {

    public User login(String usrName, String usrPassword);
    public int addUser(User user);
    public int updateUser(User user);
    public int deleteUser(Long usrId);
    public User getUser(Long usrId);
    public List<User> findAllUsers();
    public User getCacheableUser(int usrId);

}
